* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background-color: #000;
}

/* Hintergrund-Video */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.bg-video {
    width: 180vw;
    height: 180vh;
    position: absolute;
    top: -40vh;
    left: -40vw;
    object-fit: cover;
    transform: rotate(-45deg);
    filter: blur(8px) brightness(0.6);
}

/* Header / Navbar */
.navbar {
    background-color: #222222;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-btn .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-btn.open .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.menu-btn.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-btn.open .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    user-select: none;
    cursor: pointer;
}

.nav-center {
    flex-grow: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-input {
    width: 100%;
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    outline: none;
    background-color: #333;
    color: white;
}

.search-input::placeholder {
    color: #bbb;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sound-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.volume-slider {
    width: 70px;
    height: 4px;
    accent-color: white;
    cursor: pointer;
}

.icon-link, .profile-icon {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: -250px;
    width: 250px;
    height: calc(100vh - 60px);
    background-color: #222222;
    transition: left 0.3s ease;
    z-index: 999;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    list-style: none;
    padding: 20px;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.sidebar ul li a:hover {
    background-color: #333;
}

/* Haupt-Layout für Info-Seite */
.info-layout {
    display: flex;
    flex: 1;
    margin-top: 60px;
    height: calc(100vh - 105px);
}

/* Linke Leiste komplett von oben bis unten */
.left-menu {
    width: 280px;
    background-color: rgba(25, 25, 25, 0.9);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.menu-tab-btn {
    background: transparent;
    border: none;
    color: #ddd;
    padding: 20px 15px;
    text-align: left;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.menu-tab-btn:hover, .menu-tab-btn.active {
    background-color: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
    padding-left: 20px;
}

/* Rechter Content Bereich */
.content-display {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.info-card {
    background-color: rgba(34, 34, 34, 0.85);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.grid-scroll {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.opt-btn {
    display: block;
    padding: 12px;
    background-color: #444;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.opt-btn:hover {
    background-color: #ffcc00;
    color: #000;
}

/* Footer ganz unten */
footer {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #ccc;
    background-color: rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
}

/* ==========================================
   RESPONSIVE DESIGN FOR ALL SHMAHM STUDIO PAGES
   ========================================== */

/* 1. TABLETS & MIDDLE SCREENS (bis 1024px) */
@media (max-width: 1024px) {
    .nav-center {
        max-width: 250px;
    }

    .wooden-table {
        padding: 15px 25px;
    }

    .book {
        max-width: 100%;
        height: 95%;
    }

    .book-page {
        padding: 20px 25px 30px 25px;
    }

    .book-page h2 {
        font-size: 1.1rem;
    }

    .paragraph-title {
        font-size: 0.9rem;
    }

    .paragraph-item li {
        font-size: 0.8rem;
    }
}

/* 2. SMARTPHONES & SMALL SCREENS (bis 768px) */
@media (max-width: 768px) {

    /* --- Navbar & Header --- */
    .navbar {
        padding: 0 10px;
    }

    /* Suchleiste auf Handys verkleinern / ausblenden für Platz */
    .nav-center {
        display: none; 
    }

    .volume-slider {
        width: 45px;
    }

    /* --- Footer --- */
    footer {
        height: auto;
        min-height: 35px;
        padding: 10px 15px;
        line-height: 1.4;
        font-size: 10px;
    }

    /* --- Download-Seite --- */
    .download-page-content {
        padding-top: 75px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-title {
        font-size: 1.8rem;
        margin-bottom: 18px;
    }

    .download-card {
        padding: 18px;
        width: 100%;
    }

    .image-placeholder {
        height: 160px;
    }

    /* --- Info & Allgemein Seite --- */
    .info-layout {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 110px);
    }

    .left-menu {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .menu-tab-btn {
        padding: 12px 16px;
        white-space: nowrap;
        font-size: 0.9rem;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }

    .content-display {
        padding: 15px 10px;
    }

    .info-card {
        padding: 20px 15px;
    }

    .grid-scroll {
        max-height: 280px;
    }

    /* --- Gesetzbuch (Buch-Ansicht auf 1 Seite umschalten) --- */
    .law-container {
        height: calc(100vh - 100px);
    }

    .wooden-table {
        padding: 10px;
    }

    .book {
        flex-direction: column;
        border-left: 6px solid #1c3b57;
        border-right: 6px solid #1c3b57;
        border-top: 2px solid #102436;
        border-bottom: 2px solid #102436;
    }

    /* Buchfalte auf Handys ausblenden */
    .book-spine {
        display: none;
    }

    /* Auf dem Handy wird nur 1 Seite pro Screen gezeigt */
    .book-page {
        width: 100%;
        height: 100%;
        padding: 15px 20px 30px 20px;
        overflow-y: auto;
    }

    .right-page {
        display: none; /* Zweite Seite auf kleinen Screens verstecken */
    }

    .left-page {
        border-right: none;
        box-shadow: none;
    }

    /* Pfeile anpassen */
    .nav-arrow {
        width: 32px;
        height: 45px;
        font-size: 1.1rem;
    }

    .prev-arrow { left: -5px; }
    .next-arrow { right: -5px; }

    /* Fliegender Zurück-Button auf Handys etwas kompakter */
    .back-btn-top.top-left-mode {
        transform: translate(10px, 68px) scale(0.9);
    }

    .back-btn-top.center-mode {
        transform: translate(-50%, 60px) scale(0.9);
    }
}

/* 3. SEHR KLEINE HANDYS (bis 400px) */
@media (max-width: 400px) {
    .logo {
        height: 32px;
    }

    .volume-container {
        gap: 4px;
    }

    .start-card {
        padding: 20px 15px;
    }

    .start-card h1 {
        font-size: 1.5rem;
    }
}